package com.xiaodimall.beforesys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaodimall.beforesys.pojo.Order;
import com.xiaodimall.utils.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 16436
* @description 针对表【tb_order(订单表)】的数据库操作Mapper
* @createDate 2022-11-29 11:34:50
* @Entity com.xiaodimall.beforesys.pojo.Order
*/
public interface OrderMapper extends BaseMapper<Order> {


    //根据订单id查询出订单信息
    Order selectByOrderNo(String orderNo);

    //查询出所有订单的总数
    List<Order> findOrderList(PageQueryUtil pageUtil);

    //查询出数据分页处理
    int getTotalOrders(PageQueryUtil pageUtil);

    //批量修改订单状态
    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

}




